from copy import deepcopy

class const(object):

    def __setattr__(self, name, value):
        if self.__dict__.has_key(name):
            print 'NO WAY this is a const: ' + name 
            raise Exception
        self.__dict__[name] = value

    def __getattr__(self, name, value):
        if self.__dict__.has_key(name):
            return deepcopy(self.__dict__[name])

    def __delattr__(self, item):
        if self.__dict__.has_key(item):
            print 'NOOOOO'
            raise Exception

CONST = const()
#machine
CONST.name = "name"
CONST.cpucount = "cpuCount"
CONST.memsize = "memSize"
CONST.vramsize = "vramSize"
CONST.status = "status"
CONST.id = "id"